package org.fireflow2.designer.eclipse.policies.datafield;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ComponentEditPolicy;
import org.eclipse.gef.requests.GroupRequest;
import org.fireflow2.designer.eclipse.commands.datafield.DeleteDataFieldCommand;
import org.fireflow2.designer.eclipse.commands.service.DeleteServiceDefCommand;
import org.fireflow2.designer.eclipse.modelwrapper.basic.DataFieldWrapper;
import org.fireflow2.designer.eclipse.modelwrapper.basic.ServiceDefWrapper;

public class DataFieldEditPolicy extends ComponentEditPolicy {
    protected Command createDeleteCommand(GroupRequest deleteRequest) {
        DataFieldWrapper nodeWrapper = (DataFieldWrapper)this.getHost().getModel();
    	DeleteDataFieldCommand deleteCommand=new DeleteDataFieldCommand(nodeWrapper);

        return deleteCommand;

    }
}
